package com.baizhi.dao;

import com.baizhi.entity.Book;
import org.springframework.data.elasticsearch.repository.ElasticsearchCrudRepository;

import java.util.List;

public interface BookRepository extends ElasticsearchCrudRepository<Book,Long> {
    //根据图书的名称和价格进行查询
    public List<Book> findByNameAndPrice(String name,double price);
}
